// components/search-box/search-box.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {},

  /**
   * 组件的初始数据
   */
  data: {
    carNumber: "",
  },

  /**
   * 组件的方法列表
   */
  methods: {
    bindKeyInput(e) {
      this.setData({
        carNumber: e.detail.value,
      });
    },
    clearInput(e) {
      this.setData({
        carNumber: "",
      });
    },
    searchCarNumber() {
      this.triggerEvent("searchCarNumberValue", this.data.carNumber);
    },
  },
});
